package com.lab.po;

public class PageBean {
	
	private int countPage=5; //多少条记录进行分页?
	
	private int countRecords; //记录总数
	
	private int totalPage;   //总页数?
	
	private int currentPage; //当前页?
	
	private int pageDown;//下一页?
	
	private int pageUp;//上一页?
	
	

	public int getPageDown() {
		return pageDown;
	}

	public void setPageDown(int pageDown) {
		this.pageDown = pageDown;
	}

	public int getPageUp() {
		return pageUp;
	}

	public void setPageUp(int pageUp) {
		this.pageUp = pageUp;
	}

	public int getCountPage() {
		return countPage;
	}

	public void setCountPage(int countPage) {
		this.countPage = countPage;
	}

	public int getCountRecords() {
		return countRecords;
	}

	public void setCountRecords(int countRecords) {
		if(countRecords%countPage==0){
			this.totalPage=countRecords/countPage;
		}else{
			this.totalPage=countRecords/countPage+1;
		}
		this.countRecords = countRecords;
	}

	//总页数?
	public int getTotalPage() {
       return totalPage;
	}



	public int getCurrentPage() {
		return currentPage;
	}

	public void setCurrentPage(int currentPage) {
		this.currentPage = currentPage;
	}

	
	
}
